package com.hua.struct;

public class ForDemo05 {
    public static void main(String[] args) {
        int[] numbers = {10,20,30,40,50,60};
        System.out.println("新用法遍历数组,增强for循环");
        for (int x:numbers){
            System.out.println(x);//遍历数组的元素；
        }

        System.out.println("常规的for遍历数组");
        for (int i= 0 ; i <5;i++){
            System.out.println(numbers[i]);
        }


    }




}
